from rest_framework import serializers

from apps.goods.models import GoodsVisitCount


class GoodsVisitModelSerializer(serializers.ModelSerializer):
    category = serializers.StringRelatedField()
    class Meta:
        model = GoodsVisitCount
        fields = ["category", "count"]
